﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataObjects
{
    public static class GlobalData
    {
        static private int gameTime = 0;
        static private int timeDelta = 0;

        static public double Delta
        {
            get { return timeDelta; }
        }

        static public void ResetTime(int milliseconds)
        {
            gameTime = milliseconds;
            timeDelta = 0;
        }

        static public void MarkTime(int milliseconds)
        {
            int now = milliseconds;
            int d = now - gameTime;

            timeDelta = d;
            gameTime = now;
        }
    }
}
